package com.whut.v_bo;

public class Tuples2<T1, T2> {
    private T1 t1;
    private T2 t2;

    private Tuples2(T1 t1, T2 t2) {
        this.t1 = t1;
        this.t2 = t2;
    }

    public static <T1, T2> Tuples2<T1, T2> of(T1 t1, T2 t2) {
        return new Tuples2<>(t1, t2);
    }

    public T1 getT1() {
        return t1;
    }

    public void setT1(T1 t1) {
        this.t1 = t1;
    }

    public T2 getT2() {
        return t2;
    }

    public void setT2(T2 t2) {
        this.t2 = t2;
    }
}
